<template>
  <vue-ueditor-wrap
    v-model="model"
    :config="editorConfig"
    editor-id="editor-demo-01"
  />
</template>

<script setup>
import { ref } from "vue";
// import VueUeditorWrap from "vue-ueditor-wrap";
const model = defineModel();
setInterval(_ => console.log(model.value), 1000);

const editorConfig = ref({
  // 访问 UEditor 静态资源的根路径
  UEDITOR_HOME_URL: "/libs/ueditor/",
  serverUrl: "//ueditor.szcloudplus.com/cos"
});
</script>
